<?php
date_default_timezone_set("Asia/Shanghai");
define('APP_PATH', dirname(dirname(__FILE__)));

$loader = \Yaf\Loader::getInstance();
$autoload = APP_PATH . '/vendor/autoload.php';
if (is_file($autoload)) {
	$loader->import($autoload);
}

$app = new \Yaf\Application(APP_PATH . '/conf/application.ini');
if($app->environ() != "product"){
	ini_set('disply_errors', 1);
	error_reporting(E_ALL);
}

$app->bootstrap()->run();
